gtk4.git
8 years agospinbuttonaccessible: Inherit from GtkWidgetAccessible
Timm Bäder [Thu, 4 May 2017 16:32:22 +0000 (18:32 +0200)]
spinbuttonaccessible: Inherit from GtkWidgetAccessible

8 years agospinbutton: Remove call to GtkSpinButton API
Timm Bäder [Thu, 4 May 2017 16:24:37 +0000 (18:24 +0200)]
spinbutton: Remove call to GtkSpinButton API

The condition will never be true since spinbuttons aren't entries
anymore.

8 years agospinbutton: Inherit from GtkWidget
Timm Bäder [Thu, 4 May 2017 16:31:41 +0000 (18:31 +0200)]
spinbutton: Inherit from GtkWidget

Use a box, an entry and the current 2 buttons.
Remaining problems: Entry sizing and activation.

8 years agomodelbutton: Remove last gadget usages
Timm Bäder [Thu, 4 May 2017 16:26:38 +0000 (18:26 +0200)]
modelbutton: Remove last gadget usages

And fix the clip calculation

8 years agolabel: Fix clipping
Timm Bäder [Thu, 4 May 2017 15:32:02 +0000 (17:32 +0200)]
label: Fix clipping

We were using an uninitialized value here.

8 years agowidget-factory: Remove invisible-char usage for spin buttons
Timm Bäder [Thu, 4 May 2017 15:15:38 +0000 (17:15 +0200)]
widget-factory: Remove invisible-char usage for spin buttons

8 years agoframe: Remove empty finalize implementation
Timm Bäder [Thu, 4 May 2017 14:32:43 +0000 (16:32 +0200)]
frame: Remove empty finalize implementation

8 years agoseparator: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:22:35 +0000 (16:22 +0200)]
separator: Remove gadget

8 years agolabel: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:14:47 +0000 (16:14 +0200)]
label: Remove gadget

8 years agospinner: Set clip
Timm Bäder [Thu, 4 May 2017 14:09:13 +0000 (16:09 +0200)]
spinner: Set clip

8 years agoframe: Remove gadget
Timm Bäder [Thu, 4 May 2017 14:09:00 +0000 (16:09 +0200)]
frame: Remove gadget

8 years agowidget: Add private gtk_widget_get_content_allocation
Timm Bäder [Thu, 4 May 2017 14:04:49 +0000 (16:04 +0200)]
widget: Add private gtk_widget_get_content_allocation

8 years agostackcombo: Set clip
Timm Bäder [Thu, 4 May 2017 13:36:06 +0000 (15:36 +0200)]
stackcombo: Set clip

8 years agomodelbutton: Stop using the button's gadget
Timm Bäder [Thu, 4 May 2017 13:35:47 +0000 (15:35 +0200)]
modelbutton: Stop using the button's gadget

8 years agoset clip of more widgets
Timm Bäder [Thu, 4 May 2017 09:27:45 +0000 (11:27 +0200)]
set clip of more widgets

8 years agoimage: Remove gadget
Timm Bäder [Thu, 4 May 2017 08:23:38 +0000 (10:23 +0200)]
image: Remove gadget

8 years agocolorswatch: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 07:45:05 +0000 (09:45 +0200)]
colorswatch: Remove gadget usage

8 years agoicon: Stop calling gtk_widget_set_allocation
Timm Bäder [Thu, 4 May 2017 07:37:05 +0000 (09:37 +0200)]
icon: Stop calling gtk_widget_set_allocation

The allocation passed to size-allocate is the content allocation so this
call doesn't make sense anymore.

8 years agobutton: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 07:36:49 +0000 (09:36 +0200)]
button: Remove gadget usage

Can't remove it entirely yet, since GtkCheckButton still uses it

8 years agofontbutton: Call the css node "fontbutton"
Timm Bäder [Thu, 4 May 2017 07:36:22 +0000 (09:36 +0200)]
fontbutton: Call the css node "fontbutton"

Otherwise the default looks like a button inside a button.

8 years agomenuitem: Stop using gadget
Timm Bäder [Thu, 4 May 2017 07:16:49 +0000 (09:16 +0200)]
menuitem: Stop using gadget

Once again, we can't really delete it yet since other widgets use it...

8 years agocheckbutton: Don't use parent button's gadget
Timm Bäder [Thu, 4 May 2017 07:03:04 +0000 (09:03 +0200)]
checkbutton: Don't use parent button's gadget

check buttons showing their indicator still use the internal boxgadget
and have therefore the wrong size, but this gets us closer.

8 years agoexpander: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:28:31 +0000 (08:28 +0200)]
expander: Remove gadget

8 years agogizmo: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:13:07 +0000 (08:13 +0200)]
gizmo: Remove gadget

8 years agoprogressbar: Remove gadget
Timm Bäder [Thu, 4 May 2017 06:09:44 +0000 (08:09 +0200)]
progressbar: Remove gadget

8 years agorange: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 06:05:11 +0000 (08:05 +0200)]
range: Remove gadget usage

8 years agogrid: Remove gadget
Timm Bäder [Thu, 4 May 2017 05:56:15 +0000 (07:56 +0200)]
grid: Remove gadget

8 years agobox: Remove gadget usage
Timm Bäder [Thu, 4 May 2017 05:52:14 +0000 (07:52 +0200)]
box: Remove gadget usage

Keep the gadget member in the private struct around for now so
GtkButtonBox doesn't break terribly.

8 years agowidget: Union clip with allocation and box shadow size
Timm Bäder [Thu, 4 May 2017 05:40:42 +0000 (07:40 +0200)]
widget: Union clip with allocation and box shadow size

8 years agoswitch: Remove gadget
Timm Bäder [Wed, 3 May 2017 20:22:49 +0000 (22:22 +0200)]
switch: Remove gadget

8 years agolistbox: Remove gadgets
Timm Bäder [Wed, 3 May 2017 20:16:47 +0000 (22:16 +0200)]
listbox: Remove gadgets

8 years agowidget: Pass content allocation to size-allocate vfunc
Timm Bäder [Wed, 3 May 2017 17:45:33 +0000 (19:45 +0200)]
widget: Pass content allocation to size-allocate vfunc

8 years agoheaderbar: Remove gadget
Timm Bäder [Wed, 3 May 2017 17:44:52 +0000 (19:44 +0200)]
headerbar: Remove gadget

both drawing and sizing are done through GtkWidget now.

8 years agosizerequest: Fix min size with widget margins
Timm Bäder [Thu, 18 May 2017 10:16:35 +0000 (12:16 +0200)]
sizerequest: Fix min size with widget margins

8 years agosizerequest: Stop checking orientation in query_size_for_orientation
Timm Bäder [Thu, 18 May 2017 08:11:54 +0000 (10:11 +0200)]
sizerequest: Stop checking orientation in query_size_for_orientation

Since we have ->measure now, we can implement this code more elegantly.

8 years agosizerequest: Remove for_size parameter from push_recursion_check
Timm Bäder [Thu, 18 May 2017 07:43:32 +0000 (09:43 +0200)]
sizerequest: Remove for_size parameter from push_recursion_check

It's not needed anymore after also fixing the warning message to not
mention the old get_preferred* functions.

8 years agosizerequest: Make sure widget sizes stay positive
Timm Bäder [Mon, 15 May 2017 12:38:22 +0000 (14:38 +0200)]
sizerequest: Make sure widget sizes stay positive

They can otherwise become negative, e.g. when large negative css
margins are applied.

8 years agosizerequest: Make size groups "work"
Timm Bäder [Sat, 6 May 2017 12:05:30 +0000 (14:05 +0200)]
sizerequest: Make size groups "work"

We have to query the css margin/border/padding values for all widgets
in the size group.

8 years agosizerequest: Move css handling to gtk_widget_measure
Timm Bäder [Sat, 6 May 2017 08:02:03 +0000 (10:02 +0200)]
sizerequest: Move css handling to gtk_widget_measure

We need to adjust the passed for_size to fit into the content allocation
of the widget.
That also means that we can't call gtk_widget_measure(widget) inside
gtk_widget_measure(widget) since now the for_size will be adjusted
twice.

8 years agosizerequest: Honor css min size
Timm Bäder [Wed, 3 May 2017 17:23:35 +0000 (19:23 +0200)]
sizerequest: Honor css min size

8 years agosizerequest: Fix indentation
Timm Bäder [Wed, 3 May 2017 16:50:19 +0000 (18:50 +0200)]
sizerequest: Fix indentation

8 years agoscrolledwindow: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:43:47 +0000 (11:43 +0200)]
scrolledwindow: Remove css box drawing

8 years agopaned: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:37:31 +0000 (11:37 +0200)]
paned: Remove css box drawing

8 years agoseparator: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:37:20 +0000 (11:37 +0200)]
separator: Remove css box drawing

8 years agostack: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:33:37 +0000 (11:33 +0200)]
stack: Remove css box drawing

8 years agocombobox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:31:18 +0000 (11:31 +0200)]
combobox: Remove css box drawing

8 years agonotebook: Fix crash when dragging a tab
Timm Bäder [Wed, 3 May 2017 09:21:29 +0000 (11:21 +0200)]
notebook: Fix crash when dragging a tab

gtk_gesture_get_last_event can return NULL, so guard against that.

8 years agotoolbar: Remove css box rendering
Timm Bäder [Wed, 3 May 2017 09:19:23 +0000 (11:19 +0200)]
toolbar: Remove css box rendering

8 years agoactionbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 09:16:38 +0000 (11:16 +0200)]
actionbar: Remove css box drawing

8 years agoRemove now useless snapshot implementations
Timm Bäder [Wed, 3 May 2017 09:14:28 +0000 (11:14 +0200)]
Remove now useless snapshot implementations

8 years agowidget: Add default snapshot implementation
Timm Bäder [Wed, 3 May 2017 09:11:20 +0000 (11:11 +0200)]
widget: Add default snapshot implementation

gtk_widget_snapshot will snapshot the css box, the default snapshot
vfunc now gtk_widget_snapshot_child's all child widgets.

8 years agocontainer: Remove snapshot and draw implementations
Timm Bäder [Wed, 3 May 2017 09:11:06 +0000 (11:11 +0200)]
container: Remove snapshot and draw implementations

8 years agobbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:52:37 +0000 (10:52 +0200)]
bbox: Remove css box drawing

Whether we are in expand mode or not shouldn't really make a difference
for rendering anyway.

8 years agoimage: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:44:18 +0000 (10:44 +0200)]
image: Remove css box drawing

8 years agoframe: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:34:30 +0000 (10:34 +0200)]
frame: Remove css box drawing

8 years agoswitch: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:31:24 +0000 (10:31 +0200)]
switch: Remove css box drawing

8 years agoflowbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:29:02 +0000 (10:29 +0200)]
flowbox: Remove css box drawing

8 years agolistbox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:55 +0000 (10:24 +0200)]
listbox: Remove css box drawing

8 years agoheaderbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:24:43 +0000 (10:24 +0200)]
headerbar: Remove css box drawing

8 years agowidget: Draw focus outline
Timm Bäder [Wed, 3 May 2017 08:24:32 +0000 (10:24 +0200)]
widget: Draw focus outline

8 years agoprogressbar: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:29 +0000 (10:19 +0200)]
progressbar: Remove css box drawing

8 years agolabel: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:19:17 +0000 (10:19 +0200)]
label: Remove css box drawing

8 years agogtkgrid: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:55 +0000 (10:18 +0200)]
gtkgrid: Remove css box drawing

8 years agogizmo: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:41 +0000 (10:18 +0200)]
gizmo: Remove css box drawing

8 years agobox: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:18:28 +0000 (10:18 +0200)]
box: Remove css box drawing

8 years agoWidget: Disable css box drawing for GtkWindow
Timm Bäder [Wed, 3 May 2017 08:17:58 +0000 (10:17 +0200)]
Widget: Disable css box drawing for GtkWindow

Until we know how we solve that.

8 years agobutton: Remove css box drawing
Timm Bäder [Wed, 3 May 2017 08:03:59 +0000 (10:03 +0200)]
button: Remove css box drawing

8 years agowidget: Draw background and border for every widget
Timm Bäder [Wed, 3 May 2017 08:03:24 +0000 (10:03 +0200)]
widget: Draw background and border for every widget

8 years agoBump version
Matthias Clasen [Thu, 20 Jul 2017 01:18:57 +0000 (21:18 -0400)]
Bump version

8 years agoAvoid compiler warnings
Matthias Clasen [Thu, 20 Jul 2017 00:45:52 +0000 (20:45 -0400)]
Avoid compiler warnings

Initialize these variables, so gcc doesn't complain.

8 years ago3.91.1
Matthias Clasen [Wed, 19 Jul 2017 13:16:13 +0000 (09:16 -0400)]
3.91.1

8 years agoa11y tests: Update expected results
Matthias Clasen [Wed, 19 Jul 2017 19:45:51 +0000 (15:45 -0400)]
a11y tests: Update expected results

The license urls in the about dialog changed.

8 years agotestsuite: Adjust gestures tests to gtk4 event delivery
Carlos Garnacho [Wed, 19 Jul 2017 18:57:04 +0000 (20:57 +0200)]
testsuite: Adjust gestures tests to gtk4 event delivery

Events that get to gtk_main_do_event() have the toplevel GdkWindow
as event->any.window. Also, ensure that coordinates fall within
sensible places of the windows, since those might have shadows,
headerbars and whatnot on wayland.

8 years agogtkwindow: Free pointer foci on dispose
Carlos Garnacho [Wed, 19 Jul 2017 16:13:47 +0000 (18:13 +0200)]
gtkwindow: Free pointer foci on dispose

That means the whole hierarchy is getting destroyed, leaving those
behind incurs not only in a leak, but also on weak refs (and unintended
repick) to happen in the wrong moment.

8 years agogtkwindow: Do not leak GtkPointerFocus
Carlos Garnacho [Wed, 19 Jul 2017 16:12:53 +0000 (18:12 +0200)]
gtkwindow: Do not leak GtkPointerFocus

gtk_window_add_pointer_focus() increments the refcount, which means
the caller should be dropping its own.

8 years agoFix compile error in imquartz.c due to API change in GtkIMContext.
John Ralls [Tue, 18 Jul 2017 21:42:26 +0000 (14:42 -0700)]
Fix compile error in imquartz.c due to API change in GtkIMContext.

8 years agoFix MacOS compiler warnings.
John Ralls [Tue, 18 Jul 2017 21:47:25 +0000 (14:47 -0700)]
Fix MacOS compiler warnings.

8 years agoCopy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c
John Ralls [Tue, 18 Jul 2017 18:15:12 +0000 (11:15 -0700)]
Copy gtk_clipboard_get_default implementation to gtkclipboard-quartz.c

Fixes bug 784323.

8 years agoquartz: Implement gtk_clipboard_get_selection
Philip Chimento [Thu, 3 Nov 2016 06:37:29 +0000 (23:37 -0700)]
quartz: Implement gtk_clipboard_get_selection

This function is trivial and can be copied from the X11 implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=772281

8 years agomeson: Add missing source file
Emmanuele Bassi [Tue, 18 Jul 2017 21:50:57 +0000 (22:50 +0100)]
meson: Add missing source file

The newly added gtkfilechoosererrorstack.c source needs to be included
in the Meson build as well as the Autotools one.

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 18 Jul 2017 20:03:29 +0000 (22:03 +0200)]
Update POTFILES.in

8 years agofilechooserwidget: Add GtkFileChooserErrorStack
Timm Bäder [Tue, 9 May 2017 07:52:00 +0000 (09:52 +0200)]
filechooserwidget: Add GtkFileChooserErrorStack

Showing all the different errors and warnings when renaming and creating
files/folders without potentially resizing popovers on every keystroke
requires us to know the size of the error messages beforehand, so pack
all of the possible error messages and warnings in labels and those into
a stack. This way we can also neatly crossfade transition between them.

https://bugzilla.gnome.org/show_bug.cgi?id=775636

8 years agofilechooserwidget: Let the rename entry hexpand
Timm Bäder [Sat, 4 Feb 2017 09:49:43 +0000 (10:49 +0100)]
filechooserwidget: Let the rename entry hexpand

This makes a difference with other locals where error messages are
longer than the standard width of entry+spacing+button.

https://bugzilla.gnome.org/show_bug.cgi?id=775636

8 years agoAdd nullable return annotation to gtk_text_mark_get_name
Iñaki García Etxebarria [Sat, 29 Apr 2017 11:08:49 +0000 (13:08 +0200)]
Add nullable return annotation to gtk_text_mark_get_name

https://bugzilla.gnome.org/show_bug.cgi?id=781936

8 years agoAdd nullable return annotation to gtk_notebook_get_tab_label
Iñaki García Etxebarria [Sat, 29 Apr 2017 11:08:26 +0000 (13:08 +0200)]
Add nullable return annotation to gtk_notebook_get_tab_label

https://bugzilla.gnome.org/show_bug.cgi?id=781935

8 years agoUpdate the URLs of known licenses to HTTPS
Daniel Aleksandersen [Fri, 14 Jul 2017 01:19:47 +0000 (03:19 +0200)]
Update the URLs of known licenses to HTTPS

Use HTTPS by default for security/privacy. Avoids slow redirects.

https://bugzilla.gnome.org/show_bug.cgi?id=766517

8 years agogtkapplication: Mark gtk_application_get_active_window() as nullable
Arun Raghavan [Thu, 13 Jul 2017 05:55:11 +0000 (11:25 +0530)]
gtkapplication: Mark gtk_application_get_active_window() as nullable

https://bugzilla.gnome.org/show_bug.cgi?id=784888

8 years agoUpdate POTFILES.in
Piotr Drąg [Tue, 18 Jul 2017 17:43:09 +0000 (19:43 +0200)]
Update POTFILES.in

8 years agoAdd gtkfilechoosernativequart.c to meson build
Matthias Clasen [Tue, 18 Jul 2017 17:35:21 +0000 (13:35 -0400)]
Add gtkfilechoosernativequart.c to meson build

We have two build systems now, for good measure.

8 years agoGtkFileChooserNativeWin32: add support for get_filter and set_filter
Tom Schoonjans [Thu, 13 Jul 2017 19:07:22 +0000 (20:07 +0100)]
GtkFileChooserNativeWin32: add support for get_filter and set_filter

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agotestgtk.c: native file chooser filter changes
Tom Schoonjans [Thu, 13 Jul 2017 19:03:55 +0000 (20:03 +0100)]
testgtk.c: native file chooser filter changes

Set the filter before showing the dialog
Afterwards, fetch the last active filter and display its name.

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for get_filter and set_filter
Tom Schoonjans [Thu, 13 Jul 2017 19:01:38 +0000 (20:01 +0100)]
GtkFileChooserNativeQuartz: add support for get_filter and set_filter

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNative: documentation updated
Tom Schoonjans [Sun, 9 Jul 2017 17:04:06 +0000 (18:04 +0100)]
GtkFileChooserNative: documentation updated

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for filters
Tom Schoonjans [Sun, 9 Jul 2017 16:06:12 +0000 (17:06 +0100)]
GtkFileChooserNativeQuartz: add support for filters

Includes:
* Simple glob patterns (*.ext, *.*,...)
* MIME types
* pixbuf formats

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add partial support for extra widget
Tom Schoonjans [Tue, 4 Jul 2017 07:07:09 +0000 (08:07 +0100)]
GtkFileChooserNativeQuartz: add partial support for extra widget

When the extra widget is a GtkLabel, then its text will be displayed as
a message in the NSSavePanel or NSOpenPanel

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFileChooserNativeQuartz: add support for GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
Tom Schoonjans [Mon, 3 Jul 2017 11:54:39 +0000 (12:54 +0100)]
GtkFileChooserNativeQuartz: add support for GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER

Which is via NSOpenPanel, not NSSavePanel...

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoGtkFilechooserNative: add macOS support
Tom Schoonjans [Fri, 30 Jun 2017 20:34:05 +0000 (21:34 +0100)]
GtkFilechooserNative: add macOS support

Based on the Win32 implementation, as well as the macOS file chooser
from
https://github.com/GNOME/gedit/blob/master/gedit/gedit-file-chooser-dialog-osx.[ch]
Not fully tested yet, but working properly so far.
TODO: filter support, extra widget (label), documentation...

https://bugzilla.gnome.org/show_bug.cgi?id=784723

8 years agoDrop gtk-doc trigraphs on GtkTextView enumeration
Emmanuele Bassi [Sun, 16 Jul 2017 11:33:24 +0000 (12:33 +0100)]
Drop gtk-doc trigraphs on GtkTextView enumeration

The glib-mkenums tool does not recognise these gtk-doc annotations.

8 years agoFixes to Catalan translation
Jordi Mas [Sat, 15 Jul 2017 07:37:29 +0000 (09:37 +0200)]
Fixes to Catalan translation

8 years agoimage: Warn when attempting to load pixdata GResources
Bastien Nocera [Wed, 5 Jul 2017 21:01:26 +0000 (23:01 +0200)]
image: Warn when attempting to load pixdata GResources

GdkPixdata is deprecated. Warn when the application tries to load
pixdata embedded resources. The application developer will have to
remove the "to-pixdata" keyword from the GResource definition file.

https://bugzilla.gnome.org/show_bug.cgi?id=781583